<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.*,java.text.*"%>
     <jsp:useBean id="dao" class="dao.Section_InfoImpl" scope="request"/>
     <%@ page import="dao.*" %>
     <jsp:include page="querysection_info.jsp"></jsp:include>
<!DOCTYPE html >
<html>
<head>
<style type="text/css">
.div1{
margin-left:10%;
margin-tip:10px;
}
td{
width:120px;
background:#ffcc66 ;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询结果</title>
</head>
<body>
<div class="div1">
	<table >
	<tr><td>员工号</td><td>姓名</td><td>部门编号</td><td>部门</td></tr>
<%	
	request.setCharacterEncoding("utf-8");
	String section_id=request.getParameter("section_id");
	String section_name=request.getParameter("section_name");
	String info_id=request.getParameter("info_id");
	String info_name=request.getParameter("info_name");
	List list=dao.find(section_id, section_name, info_id, info_name);
	Section_Info section_info=null;
	for(int i=0;i<list.size();i++){
		section_info=(Section_Info)list.get(i);%>
		<tr>
			<td><%=section_info.getInfo_id() %></td>
			<td><%=section_info.getInfo_name() %></td>
			<td><%=section_info.getSection_id() %></td>
			<td><%=section_info.getSection_name() %></td>
		</tr>
	<%}
	
%>
</table>
</div>
</body>

</html>